package club.banyuan;

public class ReadyMadeCake extends Cake{
    private int quantity;

    public ReadyMadeCake(int quantity) {
        this.quantity = quantity;
    }

    @Override
    public double getPrice() {
        return super.getPrice() * quantity;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }
}
